// entity/TokenData.java
package com.example.authserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("oauth2_token")
public class TokenData {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String clientId;
    private String accessToken;
    private String refreshToken;
    private String baiduAccessToken;
    private String baiduRefreshToken;
    private Date expiresAt;
    private Date createdAt;
}